home *** CD-ROM | disk | FTP | other *** search
Wrap
Text File | 1998-08-11 | 1.2 KB | 20 lines | [ TEXT/ScoM]
m-zone zone numbers The function m-zone monitors the output of a conversion function producing a list of numbers. It monitors this initial numbers (lenght) against a user-defined zone. (m-zone '4/3 '(1/8 -1/8 2/8 -1/20 2/20 1/20 -1/20 1/4 2/1 1/2 -2/1)) => (1/8 -1/8 1/4 -1/20 1/10 1/20 -1/20 1/4 1/3) (setq len (cfunction (gen-noise-white 500 1.0 .765) '(1/16 -2/16 3/16 5/16 7/16))) (setq length-to-zone (m-zone '32/1 len)) => (7/16 3/16 5/16 7/16 3/16 1/16 -1/8 1/16 7/16 5/16 -1/8 -1/8 -1/8 -1/8 7/16 1/16 5/16 5/16 5/16 7/16 5/16 5/16 3/16 7/16 5/16 3/16 5/16 3/16 3/16 5/16 3/16 1/16 -1/8 3/16 3/16 1/16 -1/8 -1/8 7/16 7/16 3/16 3/16 3/16 -1/8 -1/8 1/16 5/16 -1/8 1/16 5/16 7/16 3/16 3/16 5/16 -1/8 -1/8 -1/8 5/16 5/16 -1/8 7/16 -1/8 1/16 -1/8 3/16 1/16 7/16 -1/8 1/16 1/16 -1/8 5/16 7/16 3/16 3/16 1/16 7/16 1/16 -1/8 1/16 7/16 1/16 3/16 1/16 5/16 -1/8 -1/8 7/16 5/16 -1/8 -1/8 -1/8 3/16 1/16 -1/8 7/16 -1/8 5/16 -1/8 -1/8 5/16 3/16 3/16 5/16 5/16 5/16 7/16 1/16 -1/8 3/16 5/16 -1/8 7/16 3/16 3/16 3/16 -1/8 7/16 5/16 7/16 1/16 3/16 3/16 7/16 -1/8 5/16 -1/8 -1/8 3/16 5/16 3/16 1/16 7/16 3/16 3/16 -1/8 -1/8 5/16 1/16 5/16 3/16 1/16 5/16 3/16 1/16 7/16 5/16) ;test (get-ratio-sc (apply '+ (mapcar 'abs length-to-zone))) => 32/1